package bairui.international.model.type;

/**
 *
 * (首页模块图片视频类型)Type_IndexModuleImg
 */
@com.lianjing.sh.processing.info.annotation.GenerateInfoModel
@com.lianjing.sh.model.common.annotation.Comment("首页模块图片视频类型")
@com.lianjing.sh.processing.info.annotation.InfoComment("首页模块图片视频类型")
public enum Type_IndexModuleImg implements com.sh_lianjing.standard.EnumCommentable<Type_IndexModuleImg> {

	/**
	 * (图片模块)Img</br>
	 */
	@com.lianjing.sh.model.common.annotation.Comment("图片模块")
	@com.lianjing.sh.processing.info.annotation.InfoComment("图片模块")
	Img("图片模块")
,
	/**
	 * (视频模块)Video</br>
	 */
	@com.lianjing.sh.model.common.annotation.Comment("视频模块")
	@com.lianjing.sh.processing.info.annotation.InfoComment("视频模块")
	Video("视频模块")
;

	private static java.util.Map<String, Type_IndexModuleImg> Cache = new java.util.HashMap<>();
	static{
		for(Type_IndexModuleImg enumItem : Type_IndexModuleImg.values()){
			Cache.put(enumItem.getComment(), enumItem);
		}
	}

	private String comment;

	private Type_IndexModuleImg(String comment){
		this.comment = comment;
	}

	@Override
	public String toString() {
		return comment;
	}

	@Override
	public String getComment() {
		return comment;
	}

	@Override
	public Type_IndexModuleImg parseByComment(String comment) {
		return Type_IndexModuleImg.parse(comment);
	}

	public static Type_IndexModuleImg parse(String comment) {
		Type_IndexModuleImg enumItem = Cache.get(comment);
		if(null == enumItem){
			 throw new com.sh_lianjing.standard.exception.EnumCommentableException(Type_IndexModuleImg.class, comment);
		}
		return enumItem;
	}

}
